/*
 * @Description: 
 * @version: 
 * @Author: 171
 * @Date: 2022-09-05 12:35:01
 * @LastEditors: 171
 * @LastEditTime: 2022-09-20 18:17:34
 */
import express, {
  Router,
  Request,
  Response,
} from "express";
import axios from "axios";

const router: Router = express.Router(); // 声明一个路由
router.get("/epidemiclist", async (req: Request, res: Response) => { // 获得疫情数据
  const result = await axios.post(
    "https://api.inews.qq.com/newsqa/v1/query/inner/publish/modules/list?modules=localCityNCOVDataList,diseaseh5Shelf"
  );
  res.json({
    ...result.data.data,
  });
});

export default router